package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.GoodsTypeDao;
import com.atguigu.jxc.entity.vo.GoodsTypeList;
import com.atguigu.jxc.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luojia
 * @create 2022-01-01 22:10
 */
@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {
    @Autowired
    private GoodsTypeDao goodsTypeDao;
    /**
     * 查询商品所有分类
     *
     * @return
     */
    @Override
    public List<GoodsTypeList> queryCategories() {
        List<GoodsTypeList> goodsTypeLists = goodsTypeDao.queryCategories(-1);
        return goodsTypeLists;
    }

}
